local gutu = fk.CreateSkill{
    name = "st__gutu",
}
gutu:addEffect(fk.EventPhaseStart,{
    can_trigger = function (self, event,target,player,data)
        return target == player and target:hasSkill(self.name)
        and player.phase == Player.Finish and player:getMark("jici_damage") == 0
    end,
    on_use = function(self, event, target, player, data)
        local room =player.room
        local judge ={
            who = player,
            reason = self.name,
            pattern = ".",
        }
        room:judge(judge)
        if judge.card.color == Card.Red then
            player.room:recover({
             who = player,
             num = 1,
            recoverBy = player,
            skillName = self.name,
         })
        else
            player:drawCards(1)
        end
    end,
})
Fk:loadTranslationTable{
    ["st__gutu"]="故土",
    [":st__gutu"]="结束阶段，若你本回合未造成伤害，你可以进行一次判定，若为红，则回复一点体力，若为黑，则摸一张牌",
}

return gutu
